package cn.edu.zut.service.Impl;

import cn.edu.zut.dao.ContestRegistryDao;
import cn.edu.zut.domain.ContestRegistry;
import cn.edu.zut.service.ContestRegistryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ContestRegistryServiceImpl implements ContestRegistryService {

    @Autowired
    private ContestRegistryDao dao;

    @Override
    public List<ContestRegistry> findAll() {
        return dao.findAll();
    }

    @Override
    public void deleteById(int id) {
        dao.deleteById(id);
    }

    @Override
    public void update(ContestRegistry contestRegistry) {
        dao.update(contestRegistry);
    }

    @Override
    public List<ContestRegistry> findLikeAllByPrint(ContestRegistry contestRegistry) {
        return dao.findLikeAllByPrint(contestRegistry);
    }
}
